package com.qidianit.mes.sys.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.Supplier;

public interface SupplierService {
    /**
     *
     * @param supplier
     * @return
     */
    Result<PageInfo<Supplier>> selectList(Supplier supplier, int pageNum, int pageSize);

    /**
     *
     * @param code
     * @return
     */
    Result<Supplier> selectByCode(String code);

    /**
     *
     * @param supplier
     * @return
     */
    Result<Supplier> saveSupplier(Supplier supplier);

    /**
     *
     * @param supplier
     * @return
     */
    Result updateById(Supplier supplier);

    /**
     *
     * @param id
     * @return
     */
    Result deleteById(Long id);

    /**
     *
     * @param ids
     * @return
     */
    Result batchDelete(Long[] ids);
}
